package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.Message;
import campus.aiit.ssl.manage.custom.dao.BaseDao;

import java.util.List;
import java.util.Map;

public interface MessageDao extends BaseDao<Message> {
    @Override
    Message selectByPrimaryKey(Long id);

    int deleteByPrimaryKey(long id);

    @Override
    int updateByPrimaryKeySelective(Message record);

    @Override
    int insertSelective(Message record);

    List<Map<String,Object>> selectMessage();

    int getTotalMessage();

    Message selectByDASC(long deviceId,long alarmId,int status);
}
